
    <form method="post" action="" class="form-signin" enctype="multipart/form-data" >
        <input name="excel" type="file" class="form-control " >
        <button class="layui-btn">导入</button>
    </form>
    <table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('getlist')}',page: true}" lay-filter="edit-table" data-url="{:url('editPermissions')}" data-key="permission_id">
        <thead>
        <tr>
            <th lay-data="{field:'mation_id', width:80, sort: true}">ID</th>
            <th lay-data="{field:'user_phone', edit:'number', sort: true}">手机号</th>
            <th lay-data="{field:'company',sort: true}">公司名称</th>
            <th lay-data="{toolbar:'#status'}">状态</th>
            <th lay-data="{toolbar: '#manipulate', minWidth:200, fixed: 'right'}">操作</th>
        </tr>
        </thead>
    </table>

    <script type="text/html" id="status">
        {{# if (d.status==1) { }}
        <span class="layui-btn layui-btn-sm">可以注册</span>
        {{# } else if (d.status==2) { }}
        <span class="layui-btn layui-btn-sm layui-btn-danger">不可以注册</span>
        {{# } }}
    </script>
    <script type="text/html" id="manipulate">

        <a href="{:url('hdelete')}?id={{d.mation_id}}" class="layui-btn ajax-delete layui-btn-sm layui-btn-danger" data-msg="确定删除？">删除</a>


    </script>

